<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>inline-block</title>
    <style>
        div, span {
            height: 400px;
            background-color: red;
            display: inline-block;
        }
    </style>
</head>
<body>
    <div>div1</div>
    <div>div2</div>
    <hr>
    <span>span1</span>
    <span>span2</span>
    <!--
    inline-block元素的特征
    1. 使块元素能在一行显示
    2. 使行内元素标签支持指定宽高
    3. 没有指定宽度的时候，内容撑开
    -->
</body>
</html>